package com.qf.first.pojo.vo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import java.sql.Timestamp;

@Data
@ApiModel("查询订单实体类")
public class OrderVo {
    @ApiModelProperty("订单号")
    private Long orderId;
    @ApiModelProperty("餐品名称")
    private String foodName;
    @ApiModelProperty("餐品图片")
    private String foodUrl;
    @ApiModelProperty("餐品数量")
    private int orderNum;
    @ApiModelProperty("餐品单价")
    private double foodPrice;
    @ApiModelProperty("餐品总价")
    private double foodAllPrice;
    @ApiModelProperty("商户名称")
    private String shopName;
    @ApiModelProperty("订单创建时间")
    private Timestamp orderCreateTime;
    @ApiModelProperty("订单状态")
    private String stateName;

    public OrderVo() {
    }

    public OrderVo(Long orderId, String foodUrl, int orderNum, double foodPrice, double foodAllPrice, String shopName, Timestamp orderCreateTime, String stateName) {
        this.orderId = orderId;
        this.foodUrl = foodUrl;
        this.orderNum = orderNum;
        this.foodPrice = foodPrice;
        this.foodAllPrice = foodAllPrice;
        this.shopName = shopName;
        this.orderCreateTime = orderCreateTime;
        this.stateName = stateName;
    }

}
